#ifndef OPERATION_H
#define OPERATION_H


class Operation
{
public:
    Operation();
    Operation(int num_1,int num_2);

    //纯虚函数
    virtual int getResult()=0;


    //setter和getter

    int getNum_1();
    void setNum_1(int num_1);

    int getNum_2();
    void setNum_2(int num_2);


private:
    int num_1;
    int num_2;


};

#endif // OPERATION_H
